package cloud.lysky.order.feign;

import cloud.lysky.product.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-product", fallback = ProductFeignClientFallBack.class)
public interface ProductFeignClient {

    // 获取商品的详细信息
    @GetMapping("/api/product/{productId}")
    Product getProductById(@PathVariable Long productId);
}
